<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script type="text/javascript">
            function refresh() {
                $("#flexigrid").flexReload();
                setTimeout("refresh()", 10000);
            }
        </script>
    </head>
    <body onload="refresh()">
        <!--<form action='<?= site_url('message/attribute/flexigrid') ?>' method="post">
                <div class="queryForm"><div style="margin-top:10px;"><?= translate('DBPLAYER_ROLE_NAME') ?>:
                <input id="rolename" name="rolename" type="text" /><input type="submit" value="查询"/></div></div>
        </form>
        -->
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('message/roledataAnalysis/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('MESSAGE_ROLEDATA_ROLEID') ?>', name: 'roleid', width: '80', iskey: true},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GANGRICHADD') ?>', name: 'gang_rich_add', width: '100'},                        
                        {display: '<?= translate('MESSAGE_ROLEDATA_GANGRICHNOW') ?>', name: 'gang_rich_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GOLDADD') ?>', name: 'gold_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GOLDNOW') ?>', name: 'gold_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_DIAMONDADD') ?>', name: 'diamond_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_DIAMONDNOW') ?>', name: 'diamond_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_PRESTIGEADD') ?>', name: 'prestige_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_PRESTIGENOW') ?>', name: 'prestige_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GLORYADD') ?>', name: 'glory_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GLORYNOW') ?>', name: 'glory_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_SMELTADD') ?>', name: 'smelt_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_SMELTNOW') ?>', name: 'smelt_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_EXPADD') ?>', name: 'exp_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_EXPNOW') ?>', name: 'exp_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GANGEXPADD') ?>', name: 'gang_exp_add', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_GANGEXPNOW') ?>', name: 'gang_exp_now', width: '100'},
                        {display: '<?= translate('MESSAGE_ROLEDATA_SERVERID') ?>', name: 'serverid', width: '80'},
                        ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
//                        {name: 'name', displayname: "<?= translate('DBPLAYER_ROLE_NAME') ?> <input type='text' style='padding:1px;' value='yy' size='12' placeholder='<?= translate('PLASE_WRITE') ?>' name='name' op='='/>", bclass: 'add'},
                    ],
                    <!-- searchitems: [{display: '<?= translate('DBPLAYER_NAME') ?>', name: 'name'}],-->
                }));

            });
        </script>
    </body>
</html>